<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>重庆大学硕士研究生服务系统</title>
<?php $this->load->view('includes/ga_head'); ?>  
<script src="<?php echo $includes_dir;?>js/editor_config.js?v=1.0"></script>
<script src="<?php echo $includes_dir;?>js/editor_all.js?v=1.0"></script>
</head>
<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<body class=""> 
<!--<![endif]-->
<?php $this->load->view('includes/ga_navbar'); ?>  
<?php $this->load->view('includes/ga_sidebar'); ?>  
<div class="content">
    <div class="header">
        <h1 class="page-title">公告信息</h1>
    </div>
    <ul class="breadcrumb">
        <li><a href="index.html">Home</a> <span class="divider">/</span></li>
        <li class="active">公告浏览</li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">
    <?php $attributes = array('id' => 'new_news_form');echo form_open(current_url(), $attributes);?>
<div class="btn-toolbar">
  <button type="submit" class="btn btn-primary" id="form_btn"/><i class="icon-plus"></i> 增加
  </button>
  <input type="hidden" name="insert_news" value="1" />
  <div class="btn-group">
  </div>
</div>
<?php $this->load->view('includes/ga_message'); ?>  
<div class="well">
   <!-- <div class="row-fluid">公告标题：<input type="text" name="add_news_title" class="span6 search-query" />
    </div>
    <div class="row-fluid">公告类别：
         <select class="search-query">
	  	     <option value = 1 >招生动态</option>
	  	     <option value = 2 >推免政策</option>
	  	     <option value = 3 >其它</option>
	     </select>
    </div>  -->
  <div class="control-group">
    <label class="control-label" >公告标题：</label>
    <div class="controls">
      <input type="text" name="add_news_title" class="span6 search-query" placeholder="公告标题"/> 
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >公告类别：</label>
    <div class="controls">
         <select >
	  	     <option value = 1 >招生动态</option>
	  	     <option value = 2 >推免政策</option>
	  	     <option value = 3 >其它</option>
	     </select>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >正文：</label>
    <div class="controls">
		         <textarea name="news_edit_text" id="news_edit"></textarea>
             <script type="text/javascript">
                  var editor = new UE.ui.Editor();
                  editor.render("news_edit");
             </script>  
    </div>
  </div>

</div>
	  <?php echo form_close();?>
<?php $this->load->view('includes/ga_footer'); ?>  
        </div>
    </div>
</div>
<?php $this->load->view('includes/ga_scripts'); ?>
<script>
/*************增加了这个部分以后，与UE.ui.Editor控件有冲突，导致编辑内容不能被后台获取，故取消这个遮罩
$(document).ready(function(){
    $('#form_btn').confirm({
		'title' : '提交新闻',
		'message' : '您确定要提交该新闻？',        
		'action' : function() {
			$('#new_news_form').submit();
		}
	});
});*/
</script>  

</body>
</html>
